//
//  WHRequestTools.h
//  GoldenManager
//
//  Created by 文 on 2018/6/25.
//  Copyright © 2018年 sanpu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


typedef void(^HttpSuccess)(NSDictionary *responseDic);

typedef void(^HttpFailure)(NSError *error);

@interface WHRequestTools : NSObject

// 文件上传
+(void)uploadWithUrlString:(NSString *)urlString parameters:(NSDictionary *)parameters uploadArrary:(NSArray *)uploaArrary success:(HttpSuccess)success failure:(HttpFailure)failure;


+(void)uploadWithUrlStringForOSS:(NSString *)urlString parameters:(NSDictionary *)parameters uploadArrary:(NSArray *)uploaArrary success:(HttpSuccess)success failure:(HttpFailure)failure;

+(NSString*)signWithParam:(NSDictionary*)parameters andUrlString:(NSString*)urlStr;

+(NSData*)compressImageToData:(UIImage*)img;


@end
